package com.example.diancai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.example.diancai.enums.Game2048LevelEnum;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "wx_user")
public class WxUser {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信id
     */
    @TableField(value = "wx_id")
    private String wxId;

    /**
     * 微信用户名称
     */
    @TableField(value = "wx_username")
    private String wxUsername;

    /**
     * 微信用户头像
     */
    @TableField(value = "wx_head")
    private String wxHead;

    private Integer game2048MaxScore;

    private Integer gameXiaoxiaoMaxScore;

    private Game2048LevelEnum game2048Level;

    private Integer star;

    private Integer tyro;

    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}